package com.kuang.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class controller {
    @Autowired
    UserService userService;

    @RequestMapping("/h1")
    public String test(){
        return userService.buyTicket();
    }

    @RequestMapping("/h2")
    public String test2(){
        return userService.buyTicket2();
    }
}
